package com.jspgou.cms.manager;

import java.util.List;
import java.util.Set;

import com.jspgou.cms.entity.Role;
import com.jspgou.cms.entity.ShopMember;
import com.jspgou.common.page.Pagination;

public interface RoleMng {
	public Pagination getPage(int pageNo, int pageSize);
	
	public Pagination getPage(Long websiteId,Long storeId,int pageNo, int pageSize);
	
	public List<Role> getList(Long websiteId,Long storeId);

	public Role findById(Long id);
	
	public Role save(Role bean,ShopMember member);

	public Role save(Role bean, Long websiteId, Long storeId, Set<String> perms);

	public Role update(Role bean,Set<String> perms);

	public Role deleteById(Long id);
	
	public Role[] deleteByIds(Long[] ids);
}